package cn.school.stu.evaluation.service;

import cn.school.common.api.CommonResult;
import cn.school.stu.evaluation.entity.StuEvaData;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

/**
 * @author: lx
 * @date: 2023/5/26 10:22
 * @description:
 */
public interface StuEvaDataService {

    /**
     * 新增学生考评数据
     * @param stuEvaData
     * @return
     */
    int createStuEvaData(StuEvaData stuEvaData);

    /**
     * 批量新增学生考评数据
     * @param stuEvaDataList
     * @return
     */
    boolean createStuEvaDataBatch(List<StuEvaData> stuEvaDataList);

    /**
     * 根据学生id查询考评数据
     * @param stuId
     * @return
     */
    List<StuEvaData> findStuEvaDataByStuId(Long stuId);

    /**
     * 分页查询
     * @param vo
     * @return
     */
    IPage<StuEvaData> findStuEvaDataPageList(StuEvaData vo);

    /**
     * 根据考评任务id查询当前任务下学生考评数据
     * @param taskId
     * @return
     */
    List<StuEvaData> findStuEvaDataByTaskId(Long taskId);

    /**
     * 导入
     * @param inputStream
     * @return
     */
    CommonResult<List<StuEvaData>> importExcel(InputStream inputStream) throws IOException;
}
